package cn.scm.server.multistage.base;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class ErrorDTO {
	private String code;
	private String message;

	private ErrorDTO(String code, String message) {
		this.code = code;
		this.message = message;
	}

	public static ErrorDTO of(String code, String message) {
		return new ErrorDTO(code, message);
	}
}
